package com.hspedu.extends_;

public class ExtendsDetail {
    public static void main(String[] args) {
        System.out.println("=====第一个对象=====");
        Sub sub1 = new Sub();
        sub1.sayOk();
        System.out.println("=====第二个对象=====");
        Sub sub2 = new Sub("jack");
        System.out.println("=====第三个对象=====");
        Sub sub3 = new Sub("smith", 18);
    }
}
